home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: news.sprintlink.net!news1!ind-003-236-135
- From: dlmiller@iquest.net (Doug Miller)
- Subject: Re: Beginner port question.
- X-Nntp-Posting-Host: ind-003-236-135.iquest.net
- Message-ID: <DoBB0B.LL7@iquest.net>
- Sender: news@iquest.net (News Admin)
- Organization: IQuest Network Services
- X-Newsreader: News Xpress Version 1.0 Beta #2.1
- References: <4ia10s$3de@verkko.uwasa.fi>
- Date: Fri, 15 Mar 1996 14:04:48 GMT
-
- mkuljukk@walli.uwasa.fi wrote:
- +Xref: news1 comp.lang.c:70821
- +Path: news1!news.sprintlink.net!tank.news.pipex.net!pipex!dish.news.pipex.net!pipex!news00.sunet.se!sunic!news99.sunet.se!news.funet.fi!verkko.uwasa.fi!news
- +From: mkuljukk@walli.uwasa.fi
- +Newsgroups: comp.lang.c
- +Subject: Beginner port question.
- +Date: Thu, 14 Mar 1996 20:55:12 GMT
- +Organization: University of Vaasa, Finland
- +Lines: 22
- +Message-ID: <4ia10s$3de@verkko.uwasa.fi>
- +NNTP-Posting-Host: walli.uwasa.fi
- +X-Newsreader: Forte Agent .99b.112
- +
- + I am trying to make pc- speaker to beep by giving the port 97
- +value 79. According to my C tutorial, this should do it. It don't
- +however, so where is the problem?
- +______________________________________
- +
- +#include<stdio.h>
- +#include<conio.h>
- +void main (void)
- +{
- +int save;
- +int count=0;
- +save = inp(97);
- +outp(97,79);
- +while(count<10000);
- +outp(97,save);
- +}
- +--
- +Mikko Kuljukka
- +pitkÎŁkatu 46 b 27
- +65100 Vaasa
- +puh:961-3123492
- +
- Are the numbers 97 and 79 perhaps supposed to be hexadecimal constants?
-